package com.chen.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.AllArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Student {
//    @TableId(type = IdType.AUTO)  //用数据库提供的自增策略
    private Integer id;
    private String sno;  //  名字相同mybatisPlus可以自动识别
    private String sname;
    private Date Sbirthdate;
    private String ssex;
    private String smajor;
}